package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.HotelDestContent;
import cn.wolfcode.luowowo.article.mapper.HotelDestContentMapper;
import cn.wolfcode.luowowo.article.service.IHotelDestContentService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class HotelDestContentServiceImpl implements IHotelDestContentService{
    @Autowired
    private HotelDestContentMapper hotelDestContentMapper;

    @Override
    public HotelDestContent get(Long id) {
        return hotelDestContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<HotelDestContent> list() {
        return hotelDestContentMapper.selectAll();
    }

    @Override
    public int getHotelCountByDestId(Long destId) {
        return hotelDestContentMapper.selectCountByDestId(destId);
    }
}
